A Practical Algorithm for Computing Neighbors in Quadtrees, Octrees, and Hyperoctrees

نویسندگان

  • Robert Yoder
  • Peter A. Bloniarz
چکیده

A simple and general method for computing location codes of same-size neighboring nodes for any direction within quadtrees is developed and then extended for octrees and 4-D hyperoctrees. The effect of our algorithm is to ascend the tree, guided by navigational cues, until the nearest common ancestor of the target node and the computed neighbor node is reached. An advantage of our algorithm is that we can easily determine if the computed neighbor location is outside the boundaries of the quadtree or (hyper)octree. An experimental analysis of the performance of this finite-state machine (FSM) based algorithm indicates that it runs fast in the average case by measuring the average distance to the closest common ancestor for each node and all of its neighbors. This average grows slowly as the quadtree or octree depth increases. An extension to the algorithm that uses a smaller FSM table with only primary (orthogonal) neighbor directions is given.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Parallel Processing of Pointer Based Quadtrees on Hypercube Multiprocessors

This paper studies the parallel construction and manipulation of pointer based quadtrees on the hypercube multiprocessor. While parallel algorithms for the manipulation of a variant of linear quadtrees have been previously studied in the literature, no parallel pointer based quadtree construction algorithms have been presented. In this paper, we solve the problem of efficiently constructing poi...

متن کامل

lnteger Dilation and Contraction for Quadtrees and Octrees

~ Integer dilation and contraction are functions used in conjunction with quadtree and octree mapping systems. Dilation is the process of inserting a number of zeros before each bit in a word and contraction is the process of removing those zeros. Present methods of dilation and contraction involve lookup tables which consume considerable amounts of memory for mappings of large or high resoluti...

متن کامل

Neighbor finding in images represented by octrees

Algorithms are presented for moving between adjacent blocks in an octree representation of an image. Motion is possible in the direction of a face, edge, and a vertex, and between blocks of arbitrary size. The algorithms are based on a generalization and simplification of techniques developed earlier for two dimensions (i.e., in quadtrees). They are also applicable to quadtrees. The difference ...

متن کامل

Simple and Efficient Traversal Methods for Quadtrees and Octrees

Quadtrees and octrees are used extensively throughout computer graphics and in many other diverse fields such as computer vision, robotics, and pattern recognition. Managing information stored in quadtrees and octrees requires basic tree traversal operations such as point location, region location, and neighbor searches. This paper presents simple and efficient methods for performing these oper...

متن کامل

p4est: Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octrees

We present scalable algorithms for parallel adaptive mesh refinement and coarsening (AMR), partitioning, and 2:1 balancing on computational domains composed of multiple connected two-dimensional quadtrees or three-dimensional octrees, referred to as a forest of octrees. By distributing the union of octants from all octrees in parallel, we combine the high scalability proven previously for adapt...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006